Skip to content

Conversation

@suyeun84
Copy link
Contributor

@suyeun84 suyeun84 commented Feb 3, 2025

🧷 문제 링크

https://www.acmicpc.net/problem/1263

🧭 풀이 시간

20분

👀 체감 난이도

✏️ 문제 설명

최대한 늦게 일을 시작하되,
N개의 일들을 정해진 시간 내에 모두 처리해야함

🔍 풀이 방법

1.마감시간이 빠른 순서 2.걸리는 시간이 큰 순서대로 sort하고,
최초로 과제를 모두 끝마치는데에 실패한 순간에 정답을 return한다.

⏳ 회고

풀이방법이 바로 보여서 쉽게 풀었다.

@suyeun84 suyeun84 self-assigned this Feb 3, 2025
@suyeun84 suyeun84 added the success 👍 해설을 보지 않고 풀었을 때 label Feb 3, 2025
@ShinHeeEul ShinHeeEul merged commit 87346b3 into main Feb 3, 2025
1 check passed
@Seol-JY
Copy link
Contributor

Seol-JY commented Feb 3, 2025

@suyeun84 마감시간이 빠른 순서대로만 정렬해도 되지 않나요?

@suyeun84
Copy link
Contributor Author

suyeun84 commented Feb 3, 2025

@suyeun84 마감시간이 빠른 순서대로만 정렬해도 되지 않나요?

처음에 answer의 초깃값을 정해주려고 했어요
마감기한이 같은 경우에 더 오래 걸리는 거를 앞으로 정렬함으로써 더 작은 answer 초깃값을 주려고 한건데 굳이 필요 없기는 해요

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

success 👍 해설을 보지 않고 풀었을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants